package org.xiexiake.dao.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 文章表(Article)表实体类
 *
 * @author makejava
 * @since 2021-04-24 16:53:08
 */
@SuppressWarnings("serial")
public class Article extends Model<Article> {

  //文章id
  private Integer id;
  //文章标题
  private String title;
  //文章内容
  private String body;
  //创建该文章的用户id
  private Integer createUserId;
  //1审核中2通过3拒绝
  private Integer state;


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getBody() {
    return body;
  }

  public void setBody(String body) {
    this.body = body;
  }

  public Integer getCreateUserId() {
    return createUserId;
  }

  public void setCreateUserId(Integer createUserId) {
    this.createUserId = createUserId;
  }

  public Integer getState() {
    return state;
  }

  public void setState(Integer state) {
    this.state = state;
  }

  /**
   * 获取主键值
   *
   * @return 主键值
   */
  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
